home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / include / epochu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-26  |  2.5 KB  |  76 lines

  1. /******************************************************************************
  2. *
  3. *  NSSDC/CDF                Header file for EPOCH functions.
  4. *
  5. *  Version 2.0, 27-Feb-92, ST Systems (STX)
  6. *
  7. *  Modification history:
  8. *
  9. *   V1.0  24-Jan-91, D Grogan    Original version (for CDF V2.0).
  10. *   V1.1  18-Sep-91, J Love    Changed for IBM-PC/MS-DOS port.
  11. *   V2.0  27-Feb-92, J Love    Epoch functions added to CDF library.
  12. *
  13. ******************************************************************************/
  14.  
  15. #if !defined(___epoch_h___)
  16. #define ___epoch_h___
  17.  
  18. /******************************************************************************
  19. * EPOCH.  A structure for using NSSDC standard epoch values.  (Utility
  20. *      functions using the EPOCH type will be available in Toolkit.)
  21. ******************************************************************************/
  22.  
  23. struct EPOCH {
  24. double        tSince0;  /* time in milliseconds since 0 a.d. */
  25. long        year;    /* full value, i.e., 19....NOT implied */
  26. long        month;    /* 1 - 12  */
  27. long        day;    /* 1 - 31  */
  28. long        hour;    /* 24-hr clock, 0 - 23 */
  29. long        minute; /* 0 -59 */
  30. long        second; /* 0 -59 */
  31. long        msec;   /* 0 -999 */
  32. };
  33.  
  34. /******************************************************************************
  35. *  Function prototypes.
  36. ******************************************************************************/
  37.  
  38. #if defined(vms) | defined(__MSDOS__)
  39. char *dateStamp (void);
  40. double epochParseFort (char *inString);
  41. void epochStringFort (double *evalue, char *outString);
  42. char *dateStampEpoch (struct EPOCH *ep);
  43. void epCompute (struct EPOCH *ep);
  44. void epBreakdown (struct EPOCH *ep);
  45. Boolean epochParse (char *inString, struct EPOCH *ep);
  46. char *epochString (struct EPOCH *ep);
  47. char *epochString1 (struct EPOCH *ep);
  48. void compute_EPOCH (long *year, long *month, long *day, long *hour,
  49.             long *minute, long *second, long *msec, double *epoch);
  50. void EPOCH_breakdown (double *epoch, long *year, long *month, long *day,
  51.               long *hour, long *minute, long *second, long *msec);
  52. void EPOCHbreakdown (double, long *, long *, long *, long *, long *, long *,
  53.              long *);
  54. double computeEPOCH (long, long, long, long, long, long, long);
  55. #endif
  56.  
  57. #if defined(unix)
  58. char *dateStamp();
  59. double epochParseFort ();
  60. void epochStringFort ();
  61. char *dateStampEpoch ();
  62. void epCompute ();
  63. void epBreakdown ();
  64. Boolean epochParse ();
  65. char *epochString ();
  66. char *epochString1 ();
  67. void compute_EPOCH ();
  68. void EPOCH_breakdown ();
  69. void EPOCHbreakdown ();
  70. double computeEPOCH ();
  71. #endif
  72.  
  73. /*****************************************************************************/
  74.  
  75. #endif   /*___epoch_h___*/
  76.